package com.newlink.building.login.mvp.contract

import com.newlink.building.common_base.base.IModel
import com.newlink.building.common_base.base.IPresenter
import com.newlink.building.common_base.base.IView
import com.newlink.building.common_base.model.bean.HttpResult
import io.reactivex.Observable


interface Module_Login_InputEmailContract {

    interface View : IView {
        fun sendEmailSuccess()
        fun sendEmailFailed(reason: String)
    }

    interface Presenter : IPresenter<View> {
        fun sendEmail(email: String, userCategory: Int)
    }

    interface Model : IModel {
        fun sendEmail(email: String, userCategory: Int): Observable<HttpResult<String?>>
    }

}